<%@ page language="java" contentType="text/html" pageEncoding="utf-8"%>
<%String path = request.getContextPath();String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()+ path + "/";%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css" href="css/top.css"></link>
<script type="text/javascript" src="js/jquery-1.8.0.js"></script>

<script>  
//这里代码多了几行，但是不会延迟显示，速度比较好，格式可以自定义，是理想的时间显示
setInterval("showTimeFun(div_date)",1);

function showTimeFun(timeID){ 
	var date = new Date();  //创建对象  
	var y = date.getFullYear();     //获取年份  
	var m = date.getMonth()+1;   //获取月份  返回0-11  
	var d = date.getDate(); // 获取日  
	var w = date.getDay();   //获取星期几  返回0-6   (0=星期天) 
	var ww = ' 星期'+'日一二三四五六'.charAt(new Date().getDay()) ;//星期几
	var h = date.getHours();  //时
	var minute = date.getMinutes()  //分
	var s = date.getSeconds(); //秒
	if(m<10){
		m = "0"+m;
	}
	if(d<10){
		d = "0"+d;
	}
	if(h<10){
		h = "0"+h;
	}
	if(minute<10){
		minute = "0"+minute;
	}
	if(s<10){
		s = "0"+s;
	}
	 
	document.getElementById(timeID.id).innerHTML =  y+"-"+m+"-"+d+"   "+ww+"   "+h+":"+minute+":"+s;
}

</script>

</head>
<body>
	<table id="t_head">
		<tr>
			<td id="td1"></td>
			<td id="td2">&nbsp;</td>
			<td id="td3">
				
				<a id="td3_a1" target="centerFrame" href="admin/password_edit.jsp">
				<img src="images/btn_head_bg1.jpg" />修改密码</a> 
				
				<a target="centerFrame" href="admin/admin_info.jsp">
				<img src="images/btn_head_bg1.jpg" />用户信息</a>
				
				<a href="AdminServlet.do?flag=logout">
				<img src="images/btn_head_bg1.jpg" />退出系统</a>
			</td>

		</tr>
	</table>
	<table id="t_bar">
		<tr>
			<td id="bar_td1"></td>
			<td id="bar_td2">
				<div id="div_date"></div><!-- 2019-11-27 星期三 12:16 -->
			</td>
			<td id="bar_td3">商城后台管理系统</td>

		</tr>
	</table>
	<table id="t_title">
		<tr>
			<td id="title_td1"><img src="images/main_28.gif" /></td>
			<td id="title_td2"><img src="images/main_29.gif" /></td>
			<td id="title_td3"><img src="images/main_30.gif" /></td>
			<td id="title_td4">&nbsp; <label class="admininfo">当前登录用户:${session_admin.adminName} 用户状态 : 正常 </label></td>
			<td id="title_td5"><img src="images/main_32.gif" /></td>
		</tr>
	</table>
</body>


</html>